package com.ck.javacode.Chapter7;

/**
 * @author: caoke
 * @date: 2021/10/9 1:58 下午
 * @description:
 */
public class D1_Properties {
    public static void main(String[] args) {
        Person p1 = new Person();
        System.out.println("\n 当前这个人的信息"); System.out.println("age=" + p1.age + " name="
                + p1.name + " sal=" + p1.sal + " isPass=" + p1.isPass) ;
        p1.age = 10;
        p1.name = "小明";
        Person p2 = p1;//吧p1 赋给了 p2，或者说让p2指向p1
        p1.age = 80;
        System.out.println(p2.age);
    }
}


